import request from '@/plugins/request'
// 列表
export function list(params){
    return request({
        url:'/api/admin/v1/shipping/list',
        method:'get',
        params,
    })
}

// 字典
export function area(params){
    return request({
        url:'/api/admin/v1/shipping/area',
        method:'get',
        params,
    })
}

// 新建运费模板
export function add(data){
    console.log(data)
    return request({
        url:'/api/admin/v1/shipping/new',
        method:'post',
        data,
    })
}

// 编辑运费模板
export function edit(data){
    return request({
        url:'/api/admin/v1/shipping/edit',
        method:'post',
        data,
    })
}

// 删除运费模板
export function del(data){
    return request({
        url:'/api/admin/v1/shipping/remove',
        method:'post',
        data,
    })
}

// 运费模板详情
export function detail(params){
    return request({
        url:'/api/admin/v1/shipping/detail',
        method:'get',
        params,
    })
}

// 物流公司
export function company(params){
    return request({
        url:'/api/admin/v1/common/company',
        method:'get',
        params,
    })
}

// 物流信息详情
export function express(params){
    return request({
        url:'/api/admin/v1/common/express',
        method:'get',
        params,
    })
}

// 发货详情
export function send_express(params){
    return request({
        url:'/api/admin/v1/common/express-detail',
        method:'get',
        params,
    })
}